<template>
  <div class="common-layout">
    <el-container>
      <el-aside width="auto">
          <CommonAside></CommonAside>
      </el-aside>
      <el-container>
        <el-header>
            <CommonHeader></CommonHeader>
        </el-header>
        <el-main>
          <CommonTab></CommonTab>
            <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup lang = 'ts'>
import {} from "vue"
import CommonHeader from '../components/CommonHeader.vue'
import CommonAside from "../components/CommonAside.vue";
import CommonTab from "../components/CommonTab.vue";
</script>

<style lang="less" scoped>
.el-aside{
    background-color: gray;
    height: 100vh;
}

.el-header{
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    background-color: black;
}
.el-main{
    padding: 10px 20px;
}
</style>
